Skip to content

Optional type-only matching for meta-less pipe filters - #1384

Open
RasmusKD wants to merge 1 commit into
EngineHub:masterfrom
RasmusKD:pipe-type-filters
Open

Optional type-only matching for meta-less pipe filters#1384
RasmusKD wants to merge 1 commit into
EngineHub:masterfrom
RasmusKD:pipe-type-filters

Conversation

@RasmusKD

Copy link
Copy Markdown
Contributor

Follow-up from our chat, so you can see the actual change and decide.

The filter comparison rejects any item whose meta differs from the filter entry, so a plain 'potion' filter never catches brewed potions, and enchanted books and renamed items slip past every plain filter into overflow. Filtering on exact meta instead means spelling out every enchant and potion variant on a sign, which is not practical.

With 'filters-match-type' enabled, a filter entry that carries no item meta matches on type alone, so every variant of a diamond helmet sorts into the diamond helmet chest and all potions into the potion chest. Filter entries that do specify meta still compare it exactly. Off by default: the strict comparison is byte-for-byte unchanged unless a server opts in.

Fine to close if you'd rather leave filtering alone.

The filter comparison rejects any item whose meta differs from the
filter entry, so a plain 'potion' filter never catches brewed potions,
and enchanted books and renamed items slip past every plain filter
into overflow. Filtering on exact meta instead means spelling out
every enchant and potion variant on a sign, which is not practical.

With 'filters-match-type' enabled, a filter entry that carries no item
meta matches on type alone, so every variant of an item sorts into
that item's chest. Filter entries that do specify meta still compare
it exactly. Off by default, which keeps the strict comparison
unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant